﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>创建用户等级属性</title>
    <script src="/Scripts/common/common.js" type="text/javascript"></script>
    <script src="/Scripts/site/bgmgr/lvlcfg/new.js" type="text/javascript"></script>
</head>
<body>
    <ext:ResourceManager runat="server" />
    <ext:Viewport runat="server" Layout="fit">
        <Items>
            <ext:FormPanel ID="LvlCfgForm" runat="server" IDMode="Explicit" Border="false" Padding="3"
                Url="/BgMgr/LevelConfig/AddLevelCfg">
                <TopBar>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button IDMode="Explicit" runat="server" Text="保存" Icon="Disk">
                                <Listeners>
                                    <Click Handler="if (#{LvlCfgForm}.form.isValid()) {#{LvlCfgForm}.form.submit({waitMsg:'保存中...', success: successHandler, failure: failureHandler});} else {Ext.Msg.show({title:'错误', icon: Ext.MessageBox.ERROR, msg: '请检查表单是否填写正确。', buttons:Ext.Msg.OK});}" />
                                </Listeners>
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    <ext:TextField ID="LevelName" runat="server" FieldLabel="等级称号" AnchorHorizontal="90%" AllowBlank="false" MaxLength="20" />
                    <ext:NumberField ID="BeginLevel" runat="server" FieldLabel="开始级别" AnchorHorizontal="90%" AllowBlank="false" MaxLength="3" MinValue="1" MaxValue="255" />
                    <ext:NumberField ID="EndLevel" runat="server" FieldLabel="结束级别" AnchorHorizontal="90%" AllowBlank="false" MaxLength="3" MinValue="1" MaxValue="255" />
                    <ext:NumberField ID="FirstValue" runat="server" FieldLabel="基数" AnchorHorizontal="90%" AllowBlank="false" MaxLength="3" MinValue="1" MaxValue="255" />
                </Items>
            </ext:FormPanel>
        </Items>
    </ext:Viewport>
</body>
</html>
